#!/usr/bin/env bash

# 指定路径
RAR_FILE_PATH=rarlinux-x64-5.6.1.tar.gz

if [[ ! -f ${RAR_FILE_PATH} ]];then
    echo "${RAR_FILE_PATH} file not found!"
    exit;
fi

tar -xzpvf ${RAR_FILE_PATH}
cd rar

# do makefile
make && make install

echo "rar install completed!"